# Contributor: Roberto Oliveira <robertoguimaraes8@gmail.com>
# Maintainer: Roberto Oliveira <robertoguimaraes8@gmail.com>
pkgname=libfishsound
pkgver=1.0.0
pkgrel=1
pkgdesc="Simple programming interface for decoding and encoding audio data using the Xiph.org codecs"
url="https://xiph.org/fishsound/"
arch="all"
license="BSD-3-Clause"
makedepends="libvorbis-dev speex"
subpackages="$pkgname-dev $pkgname-doc"
source="https://downloads.xiph.org/releases/libfishsound/libfishsound-$pkgver.tar.gz"

prepare() {
	default_prepare

	update_config_sub
	update_config_guess
}

build() {
	./configure --prefix=/usr
	make
}

check() {
	make check
}

package() {
	make install DESTDIR="$pkgdir"
}

sha512sums="97d850fb42b394fca098a96b1784da431a0af1d54d57127179b612e4b88a7a2e406eb1411f55536e5a11ec2e8956f2659182c60ac46d49f6d14250e39a740339  libfishsound-1.0.0.tar.gz"
